//router.js
import {createRouter,createWebHashHistory} from "vue-router";
const Login = () => import('../views/Login.vue')
const Home = () => import('../views/Home.vue')
const operate = () => import('@/components/operate.vue')
const operatetest = () => import('@/components/operatetest.vue')
const operatetask = () => import('@/components/operatetask.vue')
const operateinnerlock = () => import('@/components/operateinnerlock.vue')
const routes = [
    {
        path: "/",
        name: "Home",
        component:Home,
        redirect: { name: 'operate' },
        children:[
            {
                name:"operate",
                path: 'operate',
                component: operate,
            },
            {
                name:"operatetest",
                path: 'operatetest',
                component: operatetest,
            },{
                name:"operatetask",
                path: 'operatetask',
                component: operatetask,
            },{
                name:"operateinnerlock",
                path: 'operateinnerlock',
                component: operateinnerlock,
            }
        ]
    }
];

const router = createRouter({
    history: createWebHashHistory(),
    routes: routes
});
export default router;
